import React, { Component } from 'react'

export default class Item extends Component {
  
  render() {
    const {list} = this.props
    console.log('item==>',list)
    
    return (
      list.map((item)=>{
        return (<div className="card" key={item.id}>
            <a href={item.html_url} rel="noreferrer" target="_blank">
                <img src={item.avatar_url} alt={item.login} style={{width: '100px'}}/>
            </a>
            <p className="card-text">{item.login}</p>
        </div>)
      })
      
    )
  }
}
